<?php
// 应用公共文件

function returnMsg($status, $msg = 'error', $data = [], $httpStatus = 200): \think\response\Json
{
    $result = [
        "status" => $status,
        "message" => $msg,
        "result" => $data
    ];
    return json($result, $httpStatus);
}
